const webpack = require('webpack');
const path = require('path');
module.exports = {
    entry: {
        index: path.resolve('./index.jsx')
    },
    output: {
        path: path.resolve('./js'),
        filename: '[name].js'
    },
    module: {
        loaders: [{
            test: /\.js[x]?$/,
            exclude: /node_modules/,
            loader: 'babel-loader?presets[]=es2015&presets[]=react'
        }]
    }

};